import ThirdLayout from "~/layout/ThirdLayout";
// 尾矿库信息
export const TAILING_POND_INFOR = "tailing-pond-infor";
export const TAILING_POND_INFOR_CHILD = "tailing-pond-infor-child"
// 测点信息管理
export const STATION_INFORMATION = "station-information";
export const STATION_INFORMATION_CHILD = "station-information-child";
// 设备信息管理
export const SENSOR_INFOR_CONTROLLER = "sensor-infor-controller";
export const SENSOR_INFOR_CONTROLLER_CHILD = "sensor-infor-controller-child";
// 预警阈值管理
export const WARNING_THRESHOLD_MANAGEMENT = "warning-threshold-management";
export const WARNING_THRESHOLD_MANAGEMENT_CHILD = "warning-threshold-management-child";
// 预警通知管理
export const WARNING_NOTICE_MANAGEMENT = "warning-notice-management";
export const WARNING_NOTICE_MANAGEMENT_CHILD = "warning-notice-management-child";
// 坐标参数管理
export const COORDINATE_PARAMETER_MANAGEMENT = "coordinate-parameter-management";
export const COORDINATE_PARAMETER_MANAGEMENT_CHILD = "coordinate-parameter-management-child";
// 参考系管理
export const FRAME_MANAGEMENT = "frame-management";
export const FRAME_MANAGEMENT_CHILD = "frame-management-child";
// 用户管理
export const USER_MANAGEMENT = "user-management";
export const USER_MANAGEMENT_CHILD = "user-management-child";
// 角色管理
export const ROLE_MANAGEMENT = "role-management";
export const ROLE_MANAGEMENT_CHILD = "role-management-child";
// 日志管理
export const LOG_MANAGEMENT = "log-management";
export const LOG_MANAGEMENT_CHILD = "log-management-child";
// 数据下载
export const DATA_DOWNLOAD = "data-download";
export const DATA_DOWNLOAD_CHILD = "data-download-child";
// 系统在线帮助
export const ONLINE_HELP = "online-help";
export const ONLINE_HELP_CHILD = "online-help-child";


const routers = [{
        name: TAILING_POND_INFOR,
        path: TAILING_POND_INFOR,
        component: ThirdLayout,
        redirect: {
            name: TAILING_POND_INFOR_CHILD
        },
        children: [{
            name: TAILING_POND_INFOR_CHILD,
            path: TAILING_POND_INFOR_CHILD,
            component: () => import('~/views/system-management/tailing-pond-infor/TailingPondInforChild'),
            meta: {
                label: '尾矿库信息管理',
            }
        }],
        meta: {
            icon: "icon-big-pen-note",
            label: "尾矿库信息管理",
            hasThird: true,
        },
    },{
        name: STATION_INFORMATION,
        path: STATION_INFORMATION,
        component: ThirdLayout,
        redirect: {
            name: STATION_INFORMATION_CHILD
        },
        children: [{
            name: STATION_INFORMATION_CHILD,
            path: STATION_INFORMATION_CHILD,
            component: () => import('~/views/system-management/station-information/StationInformationChild'),
            meta: {
                label: '测点信息管理',
            }
        }],
        meta: {
            icon: "icon-target",
            label: "测点信息管理",
            hasThird: true,
        }
    },{
        name: SENSOR_INFOR_CONTROLLER,
        path: SENSOR_INFOR_CONTROLLER,
        component: ThirdLayout,
        redirect: {
            name: SENSOR_INFOR_CONTROLLER_CHILD
        },
        children: [{
            name: SENSOR_INFOR_CONTROLLER_CHILD,
            path: SENSOR_INFOR_CONTROLLER_CHILD,
            component: () => import('~/views/system-management/sensor-infor-controller/SensorInforControllerChild'),
            meta: {
                label: '设备信息管理',
            }
        }],
        meta: {
            icon: "icon-accept-screen",
            label: "设备信息管理",
            hasThird: true,
        }
    },{
        name: WARNING_THRESHOLD_MANAGEMENT,
        path: WARNING_THRESHOLD_MANAGEMENT,
        component: ThirdLayout,
        redirect: {
            name: WARNING_THRESHOLD_MANAGEMENT_CHILD
        },
        children: [{
            name: WARNING_THRESHOLD_MANAGEMENT_CHILD,
            path: WARNING_THRESHOLD_MANAGEMENT_CHILD,
            component: () => import('~/views/system-management/warning-threshold-management/WarningThresholdManagementChild'),
            meta: {
                label: '预警阈值管理',
            }
        }],
        meta: {
            icon: "icon-warning",
            label: "预警阈值管理",
            hasThird: true,
        }
    },{
        name: WARNING_NOTICE_MANAGEMENT,
        path: WARNING_NOTICE_MANAGEMENT,
        component: ThirdLayout,
        redirect: {
            name: WARNING_NOTICE_MANAGEMENT_CHILD
        },
        children: [{
            name: WARNING_NOTICE_MANAGEMENT_CHILD,
            path: WARNING_NOTICE_MANAGEMENT_CHILD,
            component: () => import('~/views/system-management/warning-notice-management/WarningNoticeManagementChild'),
            meta: {
                label: '预警通知管理',
            }
        }],
        meta: {
            icon: "icon-speaker",
            label: "预警通知管理",
            hasThird: true,
        }
    },{
        name: COORDINATE_PARAMETER_MANAGEMENT,
        path: COORDINATE_PARAMETER_MANAGEMENT,
        component: ThirdLayout,
        redirect: {
            name: COORDINATE_PARAMETER_MANAGEMENT_CHILD
        },
        children: [{
            name: COORDINATE_PARAMETER_MANAGEMENT_CHILD,
            path: COORDINATE_PARAMETER_MANAGEMENT_CHILD,
            component: () => import('~/views/system-management/coordinate-parameter-management/CoordinateParameterManagementChild'),
            meta: {
                label: '坐标参数管理',
            }
        }],
        meta: {
            icon: "icon-target",
            label: "坐标参数管理",
            hasThird: true,
        }
    },{
        name: FRAME_MANAGEMENT,
        path: FRAME_MANAGEMENT,
        component: ThirdLayout,
        redirect: {
            name: FRAME_MANAGEMENT_CHILD
        },
        children: [{
            name: FRAME_MANAGEMENT_CHILD,
            path: FRAME_MANAGEMENT_CHILD,
            component: () => import('~/views/system-management/frame-management/FrameManagementChild'),
            meta: {
                label: '参考系管理',
            }
        }],
        meta: {
            icon: "icon-target",
            label: "参考系管理",
            hasThird: true,
        }
    },{
        name: USER_MANAGEMENT,
        path: USER_MANAGEMENT,
        component: ThirdLayout,
        redirect: {
            name: USER_MANAGEMENT_CHILD
        },
        children: [{
            name: USER_MANAGEMENT_CHILD,
            path: USER_MANAGEMENT_CHILD,
            component: () => import('~/views/system-management/user-management/UserManagementChild'),
            meta: {
                label: '用户管理',
            }
        }],
        meta: {
            icon: "icon-config",
            label: "用户管理",
            hasThird: true,
        }
    },{
        name: ROLE_MANAGEMENT,
        path: ROLE_MANAGEMENT,
        component: ThirdLayout,
        redirect: {
            name: ROLE_MANAGEMENT_CHILD
        },
        children: [{
            name: ROLE_MANAGEMENT_CHILD,
            path: ROLE_MANAGEMENT_CHILD,
            component: () => import('~/views/system-management/role-management/RoleManagementChild'),
            meta: {
                label: '角色管理',
            }
        }],
        meta: {
            icon: "icon-address-book",
            label: "角色管理",
            hasThird: true,
        }
    },{
        name: LOG_MANAGEMENT,
        path: LOG_MANAGEMENT,
        component: ThirdLayout,
        redirect: {
            name: LOG_MANAGEMENT_CHILD
        },
        children: [{
            name: LOG_MANAGEMENT_CHILD,
            path: LOG_MANAGEMENT_CHILD,
            component: () => import('~/views/system-management/log-management/LogManagementChild'),
            meta: {
                label: '日志管理',
            }
        }],
        meta: {
            icon: "icon-node-book",
            label: "日志管理",
            hasThird: true,
        }
    },{
        name: DATA_DOWNLOAD,
        path: DATA_DOWNLOAD,
        component: ThirdLayout,
        redirect: {
            name: DATA_DOWNLOAD_CHILD
        },
        children: [{
            name: DATA_DOWNLOAD_CHILD,
            path: DATA_DOWNLOAD_CHILD,
            component: () => import('~/views/system-management/data-download/DataDownloadChild'),
            meta: {
                label: '数据下载',
            }
        }],
        meta: {
            icon: "icon-download",
            label: "数据下载",
            hasThird: true,
        }
    },{
        name: ONLINE_HELP,
        path: ONLINE_HELP,
        component: ThirdLayout,
        redirect: {
            name: ONLINE_HELP_CHILD
        },
        children: [{
            name: ONLINE_HELP_CHILD,
            path: ONLINE_HELP_CHILD,
            component: () => import('~/views/system-management/online-help/OnlineHelpChild'),
            meta: {
                label: '系统在线帮助',
            }
        }],
        meta: {
            icon: "icon-question",
            label: "系统在线帮助",
            hasThird: true,
        }
    },
];

export default routers;